﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
using Microsoft.Xna.Framework.Content.Pipeline;
using Brain.Skinning;
using System;
using System.Diagnostics;
using Brain;

namespace Brain_Skinning
{
    [ContentTypeWriter]
    internal class SkinnedAnimationClipWriter : ContentTypeWriter<SkinnedAnimationClipContent>
    {
        protected override void Write(ContentWriter output, SkinnedAnimationClipContent value)
        {
            value.Write(output);
        }

        public override string GetRuntimeReader(TargetPlatform targetPlatform)
        {
            Type type = typeof(SkinnedAnimationClipReader);
            return AssemblyUtil.GetCorrectType(type, (Platform)targetPlatform);
        }
    }
}